package com.miaomiao.domain.system;

import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.List;
import java.util.stream.Collectors;

/**
 * Treeselect树结构实体类
 * 
 * @author miaomiao
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class RoleSelect
{
    private static final long serialVersionUID = 1L;

    /** 节点ID */
    private Long id;
    private Long value;

    /** 节点名称 */
    private String label;


    public RoleSelect(Role role)
    {
        this.id = role.getRoleId();
        this.value = role.getRoleId();
        this.label = role.getRoleName();
    }
}
